#include "rrprim.h"

RRPrim::RRPrim()
{
}

RRPRIMTYPE RRPrim::rrGetType()
{
    return type;
}

RRVec3 RRPrim::rrGetSize()
{
    return size;
}

RRVec3 RRPrim::rrGetCoord()
{
    return coord;
}

double RRPrim::rrGetDegreeZ()
{
    return degree_z;
}

void RRPrim::rrGetCrossInfo(RRCrossInfo *arg)
{
    arg->rrSetCrossInfo(&cross_info);
}

void RRPrim::rrSetPrim(RRPrim *arg)
{
    size = arg->rrGetSize();
    coord = arg->rrGetCoord();
    degree_z = arg->rrGetDegreeZ();
}

void RRPrim::rrSetPrim(RRVec3 s, RRVec3 c)
{
    size = s;
    coord = c;
    degree_z = 0.0;
}

void RRPrim::rrSetPrim(RRVec3 s, RRVec3 c, double d)
{
    size = s;
    coord = c;
    degree_z = d;
}
